import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

import { state, mutations, getters } from "./mutations"
import { actions } from "./actions"
import menuList from './modules/menu.js'
import role from "./modules/role.js"
import user from "./modules/manage.js"
import cate from "./modules/cate.js"
import specs from "./modules/specs.js"
import goods from "./modules/goods.js"
import memberList from "./modules/member.js"
import banner from "./modules/banner.js"
export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules: {
    menuList,
    role,
    user,
    cate,
    specs,
    goods,
    memberList,
    banner
  }
})
